{% extends 'base.html' %}

{% block title %}Spellen{% endblock title %}

{% block user_menu %}

	{% if is_leraar %}
		<li><a href="{{ BASE_PATH }}game/new">Nieuw Spel</a></li>
		<li><a href="{{ BASE_PATH }}user/home">Groepen Overzicht</a></li>
	{% endif %}
	{% if is_beheerder %}
		<li><a href="{{ BASE_PATH }}user/newUser">Nieuwe Leraar</a></li>
	{% endif %}
	{% if is_groep %}
		<li><a href="#">Groep</a></li>
	{% endif %}

<li><a href="{{ BASE_PATH }}logout">Uitloggen?</a></li>
{% endblock user_menu %}

{% block body %}
		
	<div class="post">
		<div class="post-bgtop">
			<div class="post-bgbtm">
				<h1 class="title"> Spel: {{ game.name|default:"missing" }} </h1>
				<div class="entry">
					<form enctype="multipart/form-data" method="post" action="{{ BASE_PATH }}round/endRound/{{ game.id }}" id="form">
						<table id="table_form">
							{{ form }}
							<tr><td><input type="submit" value="Save" /></td></tr>
						</table>
					</form>
				</div>
			</div>
		</div>
	</div>		

{% endblock body %}